﻿@model HanGu.Entity.Module
@{
    Layout = null;
    //TempData["TitlePic"] = Model.TitlePic.Replace("_B.", "_S.");
    TempData["ContorlID"] = "Remark";
    //TempData["Remark"] = Model.Remark;
    TempData["GropName"] = Model.GUID;
    var moduleList = ViewData["ModuleList"] as SelectList;
}
<script>
    $("#Parent").val("@Request["id"]");
</script>
<div class="pageContent">
    <form method="post" action="admin/@ViewData["CurrentController"]/create" enctype="MULTIPART/FORM-DATA" class="pageForm required-validate"
    onsubmit="return iframeCallback(this, navTabAjaxDone);">
    @Html.ValidationSummary(true)
    <div class="pageFormContent" layouth="56">
        @Html.HiddenFor(model => model.ID)
        @Html.HiddenFor(model => model.GUID)
        <p>
            <label>
                父模块：</label>
            @Html.DropDownListFor(model=>model.Parent, moduleList, new { @class = "combox" })
            @Html.ValidationMessageFor(model => model.Parent)
        </p>
        <p>
            <label>
                标题：</label>
            @Html.TextBoxFor(model => model.Title, new { @class = "required" })
            @Html.ValidationMessageFor(model => model.Title)
        </p>
        <p>
            <label>
                URL:</label>
            @Html.TextBoxFor(model => model.Url, new { @class = "required" })
            @Html.ValidationMessageFor(model => model.Url)
        </p>
        <p>
            <label>
                广告XML路径:</label>
            @Html.TextBoxFor(model => model.AdXml, new { @class = "required" })
            @Html.ValidationMessageFor(model => model.AdXml)
        </p>
        <p>
            <label>
                排序：</label>
            @Html.TextBoxFor(model => model.Order, new { @class = "number" })
            @Html.ValidationMessageFor(model => model.Order)
        </p>
        <p style="width:100%;height:200px">
            <label>
                简介：</label>
            @Html.TextAreaFor(model => model.Remark, new { @Style = "width:95%;height:200px" })
            @Html.ValidationMessageFor(model => model.Remark)
        </p>
    </div>
    <div class="formBar">
        <ul>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit">
                            提交</button></div>
                </div>
            </li>
            <li>
                <div class="button">
                    <div class="buttonContent">
                        <button type="button" class="close">
                            取消</button></div>
                </div>
            </li>
        </ul>
    </div>
    </form>
</div>
